home *** CD-ROM | disk | FTP | other *** search
/ LiquidLibrary 2005 February / LiquidLibrary 2005 February - Disc 1.iso / pc / Portfolio Browser / Filters / PDF / LIB / gs_typ42.ps < prev    next >
Text File  |  2003-01-03  |  1KB  |  35 lines

  1. %    Copyright (C) 1996 Aladdin Enterprises.  All rights reserved.
  2. % This software is licensed to a single customer by Artifex Software Inc.
  3. % under the terms of a specific OEM agreement.
  4.  
  5. % $RCSfile$ $Revision$
  6. % Type 42 font support code.
  7.  
  8. % Here are the BuildChar and BuildGlyph implementation for Type 42 fonts.
  9. % The names %Type42BuildChar and %Type42BuildGlyph are known to the
  10. % interpreter.  The real work is done in an operator:
  11. %    <font> <code|name> <name> <glyphindex> .type42execchar -
  12.  
  13. (%Type42BuildChar) cvn    % <font> <code> %Type42BuildChar -
  14.  { 1 index /Encoding get 1 index get .type42build
  15.  } bind def
  16. (%Type42BuildGlyph) cvn    % <font> <name> %Type42BuildGlyph -
  17.  { dup .type42build
  18.  } bind def
  19. /.type42build        % <font> <code|name> <name> .type42build -
  20.  { 2 index begin
  21.     dup CharStrings exch .knownget not
  22.      { 2 copy eq { exch pop /.notdef exch } if
  23.        QUIET not
  24.     { (Substituting .notdef for ) print = flush }
  25.     { pop }
  26.        ifelse
  27.        /.notdef CharStrings /.notdef get
  28.      } if
  29.    end .type42execchar
  30.  } bind def
  31.  
  32. % Register the font type for definefont.
  33. buildfontdict 42 /.buildfont42 cvx put
  34.